#include <iostream>

using std::cout;
using std::endl;

class Complex{
public:
    Complex(int real,int image)
    :_real(real)
     ,_image(image)
    {

    }

Complex operator+=(const Complex & rhs){
    _real += rhs._real;
    _image += rhs._image;
    return Complex(_real,_image);

}
    void print(){
        cout << _real <<":"<< _image << endl;
    }
private:
    int _real;
    int _image;
};


void test(){
    Complex c1(3,6),c2(3,4);
    c1 += c2;
    c1.print();
}

int main()
{
    test();
    return 0;
}

